home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / WIN / VB_TOOLS / MVHELP.ZIP / VWR_HELP.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1994-01-10  |  6.7 KB  |  224 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Context Sensitive Help With Viewer"
  6.    ClientHeight    =   2955
  7.    ClientLeft      =   1710
  8.    ClientTop       =   2130
  9.    ClientWidth     =   5655
  10.    ForeColor       =   &H00C0C0C0&
  11.    Height          =   3420
  12.    Icon            =   VWR_HELP.FRX:0000
  13.    KeyPreview      =   -1  'True
  14.    Left            =   1620
  15.    LinkTopic       =   "Form1"
  16.    MaxButton       =   0   'False
  17.    ScaleHeight     =   2955
  18.    ScaleWidth      =   5655
  19.    Tag             =   "Form"
  20.    Top             =   1755
  21.    Width           =   5835
  22.    Begin SSPanel Panel3D5 
  23.       AutoSize        =   3  'AutoSize Child To Panel
  24.       BevelOuter      =   1  'Inset
  25.       BevelWidth      =   2
  26.       Caption         =   "Panel3D5"
  27.       Height          =   375
  28.       Left            =   4320
  29.       TabIndex        =   14
  30.       Top             =   720
  31.       Width           =   1095
  32.       Begin CommandButton cmdHelp 
  33.          Caption         =   "&Help"
  34.          Height          =   315
  35.          Left            =   30
  36.          TabIndex        =   15
  37.          Tag             =   "HelpButton"
  38.          Top             =   30
  39.          Width           =   1035
  40.       End
  41.    End
  42.    Begin SSPanel Panel3D4 
  43.       AutoSize        =   3  'AutoSize Child To Panel
  44.       BevelOuter      =   1  'Inset
  45.       BevelWidth      =   2
  46.       Caption         =   "Panel3D4"
  47.       Height          =   375
  48.       Left            =   4320
  49.       TabIndex        =   12
  50.       Top             =   1200
  51.       Width           =   1095
  52.       Begin CommandButton Command1 
  53.          Caption         =   "&About"
  54.          Height          =   315
  55.          Index           =   1
  56.          Left            =   30
  57.          TabIndex        =   6
  58.          Tag             =   "AboutButton"
  59.          Top             =   30
  60.          Width           =   1035
  61.       End
  62.    End
  63.    Begin SSPanel Panel3D3 
  64.       AutoSize        =   3  'AutoSize Child To Panel
  65.       BevelOuter      =   1  'Inset
  66.       BevelWidth      =   2
  67.       Caption         =   "Panel3D3"
  68.       Height          =   375
  69.       Left            =   4320
  70.       TabIndex        =   11
  71.       Top             =   240
  72.       Width           =   1095
  73.       Begin CommandButton Command1 
  74.          Cancel          =   -1  'True
  75.          Caption         =   "Close"
  76.          Height          =   315
  77.          Index           =   0
  78.          Left            =   30
  79.          TabIndex        =   5
  80.          Tag             =   "CloseButton"
  81.          Top             =   30
  82.          Width           =   1035
  83.       End
  84.    End
  85.    Begin SSPanel Panel3D2 
  86.       AutoSize        =   3  'AutoSize Child To Panel
  87.       BevelOuter      =   1  'Inset
  88.       BevelWidth      =   2
  89.       Caption         =   "Panel3D2"
  90.       Height          =   1215
  91.       Left            =   240
  92.       TabIndex        =   10
  93.       Top             =   600
  94.       Width           =   2535
  95.       Begin DirListBox Dir1 
  96.          BackColor       =   &H00FFFFFF&
  97.          Height          =   1155
  98.          Left            =   30
  99.          TabIndex        =   0
  100.          Tag             =   "FileListBox"
  101.          Top             =   30
  102.          Width           =   2475
  103.       End
  104.    End
  105.    Begin SSPanel Panel3D1 
  106.       AutoSize        =   3  'AutoSize Child To Panel
  107.       BevelOuter      =   1  'Inset
  108.       BevelWidth      =   2
  109.       Caption         =   "Panel3D1"
  110.       Height          =   375
  111.       Left            =   240
  112.       TabIndex        =   9
  113.       Top             =   2280
  114.       Width           =   2535
  115.       Begin TextBox Text1 
  116.          BackColor       =   &H00FFFFFF&
  117.          Height          =   315
  118.          Left            =   30
  119.          TabIndex        =   1
  120.          Tag             =   "TextBox"
  121.          Text            =   "Topic 2"
  122.          Top             =   30
  123.          Width           =   2475
  124.       End
  125.    End
  126.    Begin SSFrame Frame3D1 
  127.       Caption         =   "Options:"
  128.       Height          =   1095
  129.       Left            =   3720
  130.       TabIndex        =   8
  131.       Top             =   1680
  132.       Width           =   1695
  133.       Begin SSOption Option3D2 
  134.          Caption         =   "Topic 5"
  135.          Height          =   255
  136.          Left            =   360
  137.          TabIndex        =   4
  138.          Tag             =   "OptionButton2"
  139.          Top             =   720
  140.          Width           =   1095
  141.       End
  142.       Begin SSOption Option3D1 
  143.          Caption         =   "Topic 4"
  144.          Height          =   255
  145.          Left            =   360
  146.          TabIndex        =   3
  147.          Tag             =   "OptionButton1"
  148.          Top             =   360
  149.          Width           =   1095
  150.       End
  151.    End
  152.    Begin PictureBox Picture1 
  153.       AutoSize        =   -1  'True
  154.       Height          =   510
  155.       Left            =   3120
  156.       Picture         =   VWR_HELP.FRX:0302
  157.       ScaleHeight     =   480
  158.       ScaleWidth      =   480
  159.       TabIndex        =   2
  160.       Tag             =   "PictureBox"
  161.       Top             =   600
  162.       Width           =   510
  163.    End
  164.    Begin Label Label2 
  165.       AutoSize        =   -1  'True
  166.       BackStyle       =   0  'Transparent
  167.       Caption         =   "Give any of these guys the focus, then hit F1:"
  168.       Height          =   195
  169.       Left            =   240
  170.       TabIndex        =   13
  171.       Top             =   240
  172.       Width           =   3915
  173.    End
  174.    Begin Label Label1 
  175.       BackStyle       =   0  'Transparent
  176.       Caption         =   "Text Box:"
  177.       Height          =   255
  178.       Left            =   240
  179.       TabIndex        =   7
  180.       Top             =   2040
  181.       Width           =   2415
  182.    End
  183. Option Explicit
  184. Sub cmdHelp_Click ()
  185.   Dim temp$
  186.   temp$ = Me.Tag
  187.   StartViewer
  188.   JumpTopic temp$
  189. End Sub
  190. Sub Command1_Click (index As Integer)
  191.   If index = 0 Then  'close app
  192.     Unload Me
  193.   Else               'about box
  194.     frmAbout.Show 1
  195.   End If
  196. End Sub
  197. ' Now we're set to trap the F1 keypress (make sure the form's KeyPreview
  198. ' property is set to true):
  199. Sub Form_KeyDown (KeyCode As Integer, Shift As Integer)
  200.   Dim temp$
  201.   If KeyCode = VK_F1 Then
  202.     temp$ = screen.ActiveControl.Tag
  203.     StartViewer
  204.     JumpTopic temp$
  205.   End If
  206. End Sub
  207. Sub Form_Load ()
  208.   Move screen.Height \ 2 - Height \ 2, screen.Width \ 2 - Width \ 2
  209. End Sub
  210. ' When your app ends make sure you close Viewer, just as you
  211. ' would with a Help file:
  212. Sub Form_Unload (Cancel As Integer)
  213.   Dim temp
  214. ' close Viewer
  215.   temp = VwrQuit(vwr)
  216.   End
  217. End Sub
  218. Sub Picture1_GotFocus ()
  219.   picture1.BorderStyle = 0
  220. End Sub
  221. Sub Picture1_LostFocus ()
  222.   picture1.BorderStyle = 1
  223. End Sub
  224.